/*
 * @Description: 告警联系人管理
 */
import request from '@/utils/request'
export default {
  /**
   * @description: 获取告警联系人表格 *代表必填
   * @param {String/Number} page *
   * @param {String/Number} size *
   */
  getlist(params) {
    return request.post("v3/notice/noticeConfig/queryPageByCondition", {
      ...params
    });
  },
  /**
   * @description: 添加
   * @param {Object}  *
   */
  addlist(params) {
    return request.post('v3/notice/noticeConfig/add', params);
  },
  /**
   * @description: 批量删除
   * @param {Object}  *
   */
  dellist(params) {
    return request.post(`v3/notice/noticeConfig/delListByNo`, {
      noList: params
    });
  },
  del(params) {
    return request.get(`v3/notice/noticeConfig/delByNo?no=${params}`);
  },
  /**
   * @description: 修改
   * @param {Object}  *
   */
  editlist(params) {
    return request.post('v3/notice/noticeConfig/edit', params);
  },
  /**
   * @description: 条件查询
   * @param {Object}  *
   */
  querybycondition(params) {
    return request.post('v3/notice/noticeConfig/queryByCondition', params);
  },
  /**
  * @description: 条件查询
  * @param {Object}  *
  */
  queryByNo(params) {
    return request.get(`v3/notice/noticeConfig/queryByNo?no=${params}`);
  }
};
